<?php /* Smarty version Smarty-3.0.7, created on 2011-04-13 13:45:49
         compiled from "templates/new_incident.tpl" */ ?>
<?php /*%%SmartyHeaderCode:144054da4cb095b6241-06753794%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'bee756e412f9c78157ae4451df69724193fa5be3' => 
    array (
      0 => 'templates/new_incident.tpl',
      1 => 1302276350,
      2 => 'file',
    ),
    'ecff8edd62bc4456f3a30265ebea0944033bcac7' => 
    array (
      0 => '.\\templates\\layout.tpl',
      1 => 1302701340,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '144054da4cb095b6241-06753794',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<html>
<head>
  <link rel="stylesheet" type="text/css" href="/nitpicker/static/css/css_main.css" />
  <script src="/nitpicker/static/js/jquery.js"></script>
  <script src="/nitpicker/static/js/nitpicker.js"></script>
  <title> Pick a New Nit </title>
</head>
<body>

<h1> <a href="/nitpicker/"> The Nitpicker </a></h1>
<div id= "log_in_log_out">  <a href= "/nitpicker/user_nits.php"> View Your Nits! </a> <?php if ($_smarty_tpl->getVariable('is_logged_in')->value){?> <a href="log_out.php"> Log Out! </a> <?php }else{ ?> <a href="log_in.php"> Log In! </a> <?php }?> </div>


		<h2 class=header_message><strong> Pick a New Nit! </strong></h2>
			<?php if ($_smarty_tpl->getVariable('failed')->value){?> <p> Try again, Sucker! </p> 
			<?php }else{ ?> <p> Have something stuck in your craw? <br /><br />
			Tell us what's been bothering you! </p> <?php }?>
		<form id=incident_form name="Nit" method="POST">
			<label id= "nit_title"> Nitle </label><br />
				<input type="text" name="title" id= "nit_title" /> <br /> <br />
			<div id= "category_select"><label class = "nit"> Nitegory! </label>
					<select name="category">
						<option value="0">Choose!</option>
						<?php  $_smarty_tpl->tpl_vars['category'] = new Smarty_Variable;
 $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('categories')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['category']->key => $_smarty_tpl->tpl_vars['category']->value){
 $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['category']->key;
?>
						<option value="<?php echo $_smarty_tpl->tpl_vars['key']->value;?>
" ><?php echo $_smarty_tpl->tpl_vars['category']->value;?>
</option>
						<?php }} ?>	
					</select> </div>
			<label class= "nit">	Nitscription! </label>
					<textarea name="description" class= "nit"/>
					</textarea>
					<br />
					<br />
				
			<label class= "nit"> NitRating!! </label><br />
					<div id= "ratings"><?php  $_smarty_tpl->tpl_vars['rating'] = new Smarty_Variable;
 $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('ratings')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['rating']->key => $_smarty_tpl->tpl_vars['rating']->value){
 $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['rating']->key;
?>
						<div class= "rating"><input type="radio" name="rating" value="<?php echo $_smarty_tpl->tpl_vars['key']->value;?>
" /> <?php echo $_smarty_tpl->tpl_vars['rating']->value;?>
</div>
					<?php }} ?></div>
			<div><input id = "submit_nit" type="submit" value="Post!" /></div>
		</form>	
					

</body>
</html>